home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Tutorial / Cookbook / 03b.events.outlet / MyObject.m < prev    next >
Text File  |  1995-06-12  |  371b  |  31 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "MyObject.h"
  5. #import <stdio.h>
  6.  
  7. @implementation MyObject
  8.  
  9. - setMyForm:anObject
  10. {
  11.     myForm = anObject;
  12.     return self;
  13. }
  14.  
  15. - incrementButton:sender
  16. {
  17.     myInt++;
  18.     printf("myInt++ = %d\n", myInt);
  19.     return self;
  20. }
  21.  
  22. - decrementButton:sender
  23. {
  24.     myInt--;
  25.     printf("myInt-- = %d\n", myInt);
  26.     return self;
  27. }
  28.  
  29.  
  30. @end
  31.